summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/news/index.astro
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 19:19:51 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2023-08-15 19:19:51 +0100
commit8dd3185b2548c83dbf31324452b3b410408ab4dd (patch)
treef8ed40b554f06b324a599fb8a40bf3d12b5456ff /src/pages/[locale]/news/index.astro
parent53f29bac911b13b2bef0125de22773bf26ce5a90 (diff)
Parametrises heading level in NewsPreviewLink
Diffstat (limited to 'src/pages/[locale]/news/index.astro')
-rw-r--r--src/pages/[locale]/news/index.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/[locale]/news/index.astro b/src/pages/[locale]/news/index.astro
index c64fbdb..8a6e322 100644
--- a/src/pages/[locale]/news/index.astro
+++ b/src/pages/[locale]/news/index.astro
@@ -24,7 +24,7 @@ export async function getStaticPaths() {
<div class="news-index">
{
allNewsInLocale.length > 0 ? (
- allNewsInLocale.map((item) => <NewsPreviewLink newsItem={item} />)
+ allNewsInLocale.map((item) => <NewsPreviewLink headingLevel="h2" newsItem={item} />)
) : (
<p>{t(tPage, { key: 'no-news' })}</p>
)